package homeWork.day3;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Scanner;

/**
 * 输入某人生日，格式为"yyyy-MM-dd"，输出到现在为止经过了多少周。
 * @author Bonnie
 *
 */
public class Test03 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        String time = input.nextLine();
        String[] t = time.split("-");
        int year = Integer.parseInt(t[0]);
        int month = Integer.parseInt(t[1])-1;
        int day = Integer.parseInt(t[2]);
        Calendar c1 = Calendar.getInstance();

        c1.set(year,month,day);
        Calendar c2 = Calendar.getInstance();
        long c1l = c1.getTimeInMillis();
        long c2l = c2.getTimeInMillis();
        long c = Math.abs(c1l-c2l);
        int week = new Long(c/(1000*60*60*24*7)).intValue();
        System.out.println("距离今天有"+week+"周");
    }
}
